package packets.c2spackets;

import network.MCConnection;
import exceptions.UnrecoverableException;
import packets.PacketHandler;
import world.WorldState;

public class P0x03 extends PacketHandler {

	public P0x03(WorldState worldstate) {
		super(worldstate);
	}

	@Override
	public void handle(MCConnection conn) throws UnrecoverableException {
		String message = conn.r.readString();
		getWorldState().chatmanager().newMessage(conn.getPlayer(), message);
	}

}
